<template>
    <div class="helpdetail">
        <div class="helpdetail-problem">{{info.title}}</div>
        <div class="helpdetail-answer" v-html="info.content"></div>
    </div>
</template>
<script>
import CONSTANT from "../../../wechat/static/constant/urlconstant";
import common from "../../../wechat/static/common/common";

export default {
  data() {
    return {
        id:'',
        info:''
    };
  },
  mounted() {
    this.id = this.$router.currentRoute.query.id;
    this.getInfo();
  },
  methods:{
    getInfo() {
      let url = CONSTANT.LIST.helpByid;
      common.get(url, this.id, res => {
        if (res.code == 200) {
            this.info = res.data.bussData
            document.title = this.info.title
        }
      });
    },
  }
}
</script>
<style lang="less">
.helpdetail{
    width: 7.5rem;
    height: 100vh;
    background:rgba(255,255,255,1);
    .helpdetail-problem{
        padding: .43rem 0 .51rem .31rem;
        height:.31rem;
        font-size:.32rem;
        font-family:PingFang-SC-Bold;
        font-weight:bold;
        color:rgba(51,51,51,1);
        line-height:.31rem;
    }
    .helpdetail-answer{
       padding:0 .3rem;
        img,video,audio{
            max-width: 100%;
        }
    }

}

</style>
